package com.zhengqiangblog.core;

import java.util.HashMap;
import java.util.Map;

public class NamespaceMapping {

	private String path;
	private Map<String, ActionMapping> actions;

	public NamespaceMapping(String path) {
		this.setPath(path);
		actions = new HashMap<String, ActionMapping>();
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public void addAction(ActionMapping action) {
		actions.put(action.getPath(), action);
	}

	public void removeAction(String actionName) {
		actions.remove(actionName);
	}

	public Map<String, ActionMapping> getActions() {
		return actions;
	}

}
